-- GENERATED SPELL FOR [Warsong Champion] --


function spell0_30739(pUnit, Event) --@Sleeping Sleep,Self--
pUnit:FullCastSpellOnTarget(42648,pUnit)
pUnit:RegisterEvent('Sorts_30739', 668, 1)
end

function spell1_30739(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30739', 589, 1)
end

function Sorts_30739(pUnit, Event)
local choix_sorts_30739 = math.random(0, 1)
if choix_sorts_30739 == 0 then
pUnit:RegisterEvent('spell0_30739', 1, 1)
end
if choix_sorts_30739 == 1 then
pUnit:RegisterEvent('spell1_30739', 1, 1)
end
end

function mob30739_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30739', math.random(1500, 3000), 1)
end

function mob30739_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30739_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30739_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30739, 1, 'mob30739_Action')
RegisterUnitEvent(30739, 2, 'mob30739_Leave')
RegisterUnitEvent(30739, 3, 'mob30739_Kill')
RegisterUnitEvent(30739, 4, 'mob30739_Die')
